package com.hghivln.blog.mapper;

import com.hghivln.blog.entity.Blog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hghivln.blog.entity.Link;
import com.hghivln.blog.entity.Type;

import java.util.List;

/**
 * <p>
 * 博客表 Mapper 接口
 * </p>
 *
 * @author hghivln
 * @since 2021-09-11
 */
public interface BlogMapper extends BaseMapper<Blog> {

    void delById(Long id);

    List<Link> getAllList();

    List<Type> getTypeCount();

    List<Blog> getTimeLine(Integer index);

    List<Blog> getBlogByIds(List<Long> blogIds);
}
